package com.scheduling.schedule.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 排产计划详情实体类
 *
 * @author 开发团队
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("schedule_detail")
public class ScheduleDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 详情ID
     */
    @TableId(value = "detail_id", type = IdType.ASSIGN_ID)
    private String detailId;

    /**
     * 排产计划ID
     */
    @TableField("plan_id")
    private String planId;

    /**
     * 生产任务ID
     */
    @TableField("task_id")
    private String taskId;

    /**
     * 机器ID
     */
    @TableField("machine_id")
    private String machineId;

    /**
     * 排产开始时间
     */
    @TableField("scheduled_start_time")
    private LocalDateTime scheduledStartTime;

    /**
     * 排产结束时间
     */
    @TableField("scheduled_end_time")
    private LocalDateTime scheduledEndTime;

    /**
     * 排产序号
     */
    @TableField("sequence_no")
    private Integer sequenceNo;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
} 